package com.gold.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gold.entity.Role;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @author XiaoHao
 * @date 2022-05-12 10:13
 */
@Component
public interface RoleDao extends BaseMapper<Role> {
    /**
     * 根据用户名查角色名称
     * @param username
     * @return
     */
    Set<String> selecRolesByUserName(String username);
}
